/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.era7bioinformatics.aws.s3.components.generic.data.grantees

import com.era7bioinformatics.aws.s3.components.generic.data.Grantee
import com.era7bioinformatics.aws.s3.components.generic.ids.CanonicalUserID

sealed trait AwsUser extends Grantee {

  val canonicalUserID: CanonicalUserID

  override lazy val identifier = canonicalUserID.value

}


case class User(theID: CanonicalUserID) extends AwsUser {

  //  this is really needed?
  override val canonicalUserID = theID

}

